/**
 * Definicão da interface
 */
package rmiteste;

import java.rmi.Remote;
import java.rmi.RemoteException;

public interface Interfaces extends Remote {

    public void ping() throws RemoteException;

    public int registrar(String login) throws RemoteException;

    public void enviarMensagem(int id, String msg, int remetente) throws RemoteException;

    public void enviarMensagem(String msg, int remetente) throws RemoteException;

    public String lerMensagem(int id) throws RemoteException;

    public String[] lerMensagens(int id) throws RemoteException;

    public String[] uruarios() throws RemoteException;
}
